package com.hyperfix.feign.clients;

import com.hyperfix.models.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author JiangChunYu
 * 2024/4/10
 */
@FeignClient(value = "ogms-data-simulator", path = "/sysJob")
public interface JobClient {
    @PostMapping("/changeStatus/{pipelineId}/{stop}")
    R<String> changeStatus(@PathVariable("pipelineId") Integer pipelineId, @PathVariable("stop") Integer stop);

    @PostMapping("/changeCycle/{pipelineId}/{period}")
    R<String> changeCycle(@PathVariable("pipelineId") Integer pipelineId, @PathVariable("period") Long period);
}
